package com.rickpan.dto.response;

/**
 * API Key测试响应DTO
 */
public class TestApiKeyResponse {

    private boolean valid;
    private String message;

    // 构造函数
    public TestApiKeyResponse() {}

    public TestApiKeyResponse(boolean valid, String message) {
        this.valid = valid;
        this.message = message;
    }

    // Builder模式
    public static Builder builder() {
        return new Builder();
    }

    public static class Builder {
        private boolean valid;
        private String message;

        public Builder valid(boolean valid) {
            this.valid = valid;
            return this;
        }

        public Builder message(String message) {
            this.message = message;
            return this;
        }

        public TestApiKeyResponse build() {
            return new TestApiKeyResponse(valid, message);
        }
    }

    // Getter 和 Setter 方法
    public boolean isValid() {
        return valid;
    }

    public void setValid(boolean valid) {
        this.valid = valid;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    @Override
    public String toString() {
        return "TestApiKeyResponse{" +
                "valid=" + valid +
                ", message='" + message + '\'' +
                '}';
    }
}
